package org.ace.script.army;

import java.util.Map;

import org.ace.basicdata.IBasicDataInitial;
import org.ace.basicdata.model.ItemBasicData;
import static org.ace.constans.ItemConstans.*;

public class ItemBasicInitial implements IBasicDataInitial<ItemBasicData> {
    private Map<Integer,ItemBasicData>   map=new  HashMap<Integer,ItemBasicData>();
    void init() {
		create(new ItemBasicData(
			gdCode: 3150,
			name:"两个包子",
			attribute:HP,
			value:150,
			duration:0,
			price:20
		));

	create(new ItemBasicData(
			gdCode: 3159,
			name:"一顿大餐",
			attribute:HP,
			value:500,
			duration:0,
			price:100
		));

	create(new ItemBasicData(
			gdCode: 3127,
			name:"一个鸡腿",
			attribute:HP,
			value:250,
			duration:0,
			price:50
		));

	create(new ItemBasicData(
			gdCode: 3073,
			name:"高级经验瓶",
			attribute:EX,
			value:5000,
			duration:0,
			price:200
		));

	create(new ItemBasicData(
			gdCode: 3059,
			name:"小经验瓶",
			attribute:EX,
			value:500,
			duration:0,
			price:50
		));

	create(new ItemBasicData(
			gdCode: 3038,
			name:"能量元石",
			attribute:MP,
			value:50,
			duration:0,
			price:100
		));

	create(new ItemBasicData(
			gdCode: 3045,
			name:"封印玉玺",
			attribute:SPEED,
			value:-0.3,
			duration:3,
			price:500
		));

	create(new ItemBasicData(
			gdCode: 3037,
			name:"爆发",
			attribute:ATK,
			value:1000,
			duration:5,
			price:1000
		));

	
	
    }

    Map<Integer, ItemBasicData> getAll() {
        return map;
    }

    void create(ItemBasicData model){
        map.put(model.gdCode,model);
    }
}
